package com.jd.service.impl;

import com.jd.dao.UserDao;
import com.jd.entity.User;
import com.jd.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/9/19/019.
 */
@Service
public class IUserServiceImpl implements IUserService {
    @Autowired
    private UserDao userDao;

    public User login(String username, String password) {
        return userDao.findOne(username, password);
    }
}
